package com.daka.service.impl;

import com.daka.dao.GroupVolunteerMapper;
import com.daka.entity.GroupVolunteer;
import com.daka.entity.Volunteer;
import com.daka.service.GroupVolunteerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yangx
 * Date: 2016/7/25 0025
 * Time: 11:24
 */
@Service("groupVolunteerService")
public class GroupVolunteerServiceImpl implements GroupVolunteerService {

    @Autowired
    private GroupVolunteerMapper groupVolunteerMapper;


    public int insert(GroupVolunteer groupVolunteer){

        return groupVolunteerMapper.insert(groupVolunteer);
    }

    public int update(GroupVolunteer groupVolunteer){
        return groupVolunteerMapper.updateByPrimaryKeySelective(groupVolunteer);
    }

    public List<GroupVolunteer> queryByEntity(GroupVolunteer groupVolunteer){
        return groupVolunteerMapper.selectByStatement(groupVolunteer);
    }

    public int selectByStatementCount(GroupVolunteer groupVolunteer){

        return groupVolunteerMapper.selectByStatementCount(groupVolunteer);
    }


}
